<template>
	<view style="background: #000;">
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				},
				src: '' //接收到的url
			};
		},
		onLoad(option) {
			this.src = decodeURIComponent(option.src);
			if (option.title) {
				uni.setNavigationBarTitle({
					title: decodeURIComponent(option.title)
				})
			}
		},
		methods: {
		}
	};
</script>

<style scoped>
	p.MsoNormal {
		text-align: left;
	}
</style>